package com.maybach.workflow.common.api.node;


import com.maybach.workflow.common.api.enums.NodeTypeEnum;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by well on 15/6/9.
 */
public class ForkNode extends BaseNode{

    private List<BaseNode> forkNodeList = new ArrayList<BaseNode>();

    private List<BaseNode> children ;  // 对应的fork和jion之间的结点

    private JoinNode joinNode;

    public List<BaseNode> getChildren() {
        return children;
    }

    public void setChildren(List<BaseNode> children) {
        this.children = children;
    }

    public JoinNode getJoinNode() {
        return joinNode;
    }

    public void setJoinNode(JoinNode joinNode) {
        this.joinNode = joinNode;
    }

    public List<BaseNode> getForkNodeList() {
        return forkNodeList;
    }

    public void setForkNodeList(List<BaseNode> forkNodeList) {
        this.forkNodeList = forkNodeList;
    }

    @Override
    public NodeTypeEnum getNodeType() {
        return NodeTypeEnum.fork;
    }
}
